lst = [3, 5, 1, 6, 7, 34, 9, 2, 6, 8]
num1 = int(input("请输入数值："))
flag = 0
for i in range(len(lst)-1):
    for j in range(i+1, len(lst)):
        if lst[i] + lst[j] == num1:
            print(i, j)
            flag = 1
            break
        elif i == len(lst)-2 and j == i+1:
            print("没有查找到")
    if flag == 1:
        break


